package com.fay.basic.base.init;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/5/12 21:04
 * @Version 1.0
 */
public class TestConstructor {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new Child1();
            new Child2(i);
        }
    }

}

class Child1 {
    Child1() {
        System.out.println("Child1 init..");
    }
}

class Child2 {
    Child2(int i) {
        System.out.println("Child init " + i + " ");
    }
}
